package com.teamin.entity;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @Author: yangrui
 * @Description: 测试
 * @Date: 下午4:07 2017/11/17
 */
public class Oole {
    private Long id;
    @NotEmpty(message = "name不能为空")
    @ApiModelProperty(value = "名称")
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Oole{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
